﻿@{
    ViewBag.Title = "首页";
}



@section PSI_JS{
    <script src="@Url.Content("~/Scripts/PSI/App.js?dt=" + DateTime.Now.Ticks.ToString())" type="text/javascript"></script>
    <script src="~/Scripts/PSI/Home/MainPage.js"></script>
    <style type="text/css">
    .search-item {
        font: normal 11px tahoma, arial, helvetica, sans-serif;
        padding: 3px 10px 3px 10px;
        border: 1px solid #fff;
        border-bottom: 1px solid #eeeeee;
        white-space: normal;
        color: #555;
    }

        .search-item h3 {
            display: block;
            font: inherit;
            font-weight: bold;
            color: #222;
        }

        .search-item h3 span {
            float: right;
            font-weight: normal;
            margin: 0 0 5px 5px;
            width: 100px;
            display: block;
            clear: none;
        }
</style>

}

<script type="text/javascript">
    Ext.onReady(function () {
        var app = Ext.create("PSI.App", {
            userName: "@ViewBag.UserName",
            showRecent: true
        });

        app.createMainUI();

        var mp = app.getMainPanel();

        var mainForm = Ext.create("PSI.Home.MainPage");
        mainForm.createUI();
        mp.add(mainForm.getMainPanel());
    });
</script>
